package com.example.demo.Mapper;

import com.example.demo.Bean.People;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PeopleMapper {
    List<People> selectPeople();
    People selectOnePeople(String peopleID);
    void updateOnePeople(@Param("people") People people);
    void deleteOnePeople(String peopleID);
    void insertPeople(@Param("leavePeople") People leavePeople);
    List<People> selectSomePeople(
            @Param("id") int id,
            @Param("work") String work,
            @Param("nation") String nation,
            @Param("max") int max,
            @Param("min") int min
    );
}
